package com.correo.database.beans;

import java.sql.Timestamp;

public class MailBean {

    private Timestamp 			dateRecive;
    private Timestamp 			dateSend;
    private MailEnviadosBean	mailEnviado; 
    private Timestamp 			createDate;
    private Timestamp 			updateDate;
    private String 				subject; 

    private String 				id;
    private String 				mensajeId;
    private MensajeBean 		mensaje;
    private Timestamp 			udateDate;
    private String 			state;
    private CasillaCorreoBean	casillaSend;
    private CasillaCorreoBean	casillaRecive;
    private String				userId;

    public MailBean () {
    }

    public String toString(){
    	return getCasillaSend().getId();
    }
    
    public Timestamp getCreateDate () {
        return createDate;
    }

    public void setCreateDate (Timestamp val) {
        this.createDate = val;
    }

    public Timestamp getDateRecive () {
        return dateRecive;
    }

    public void setDateRecive (Timestamp val) {
        this.dateRecive = val;
    }

    public Timestamp getDateSend () {
        return dateSend;
    }

    public void setDateSend (Timestamp val) {
         dateSend=val;
    }

    public MensajeBean getMensaje () {
        return mensaje;
    }

    public void setMensaje (MensajeBean val) {
        this.mensaje = val;
    }


    public String getState () {
        return state;
    }

    public void setState (String val) {
        this.state = val;
    }

    public String getSubject () {
        return subject;
    }

    public void setSubject (String val) {
        this.subject = val;
    }

    public Timestamp getUpdateDate () {
        return updateDate;
    }

    public void setUpdateDate (Timestamp val) {
        this.updateDate = val;
    }

	public MailEnviadosBean getMailEnviado() {
		return mailEnviado;
	}

	public void setMailEnviado(MailEnviadosBean mailEnviado) {
		this.mailEnviado = mailEnviado;
	}


	public Timestamp getUdateDate() {
		return udateDate;
	}


	public void setUdateDate(Timestamp udateDate) {
		this.udateDate = udateDate;
	}


	public CasillaCorreoBean getCasillaRecive() {
		return casillaRecive;
	}


	public void setCasillaRecive(CasillaCorreoBean casillaRecive) {
		this.casillaRecive = casillaRecive;
	}


	public CasillaCorreoBean getCasillaSend() {
		return casillaSend;
	}


	public void setCasillaSend(CasillaCorreoBean casillaSend) {
		this.casillaSend = casillaSend;
	}

	public void setMensajeId(String id) {
		// TODO Auto-generated method stub
		this.mensajeId= id;
	}
	public String getMensajeId() {
		return this.mensajeId;
		
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

}

